const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const Menu = new Schema({
	name: String,
	code: String,
	icon: String,
	link: {
		type: String,
		default: ""
	},
	parentId: {
		type: String,
		default: ""
	},
	roles: [String],
	hidden: {
		type: Boolean,
		default: true
	}
}, {
	timestamps: true
});
mongoose.model("Menu", Menu);